<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>家具管理</title>
</head>
<body>
<h1>家具列表</h1>
<table>
    <thead>
    <tr>
        <th>家具ID</th>
        <th>家具名称</th>
        <th>描述</th>
        <th>价格</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="furniture : ${furnitureList}">
        <td th:text="${furniture.id}"></td>
        <td th:text="${furniture.name}"></td>
        <td th:text="${furniture.description}"></td>
        <td th:text="${furniture.price}"></td>
        <td>
            <a th:href="@{/admin/furniture/edit/{id}(id=${furniture.id})}">编辑</a>
            <a th:href="@{/admin/furniture/delete/{id}(id=${furniture.id})}">删除</a>
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>
